package com.jzo2o.trade.service;

import com.jzo2o.api.trade.dto.response.ExecutionResultResDTO;
import com.wechat.pay.java.service.refund.model.RefundNotification;

import java.math.BigDecimal;

/**
 * 退款服务接口
 */
public interface IRefundService {
    /**
     * 退款
     *
     * @param tradingOrderNo 订单编号
     * @param refundAmount   退款金额
     * @return
     */
    ExecutionResultResDTO refund(Long tradingOrderNo, BigDecimal refundAmount);
    /**
     * 退款成功
     *
     * @param transaction
     */
    void refundSuccess(RefundNotification transaction);
}
